package com.swagger.demo.threads;

import java.util.concurrent.Callable;

/**
 * @auther heyang
 * @date 2020/9/16 22:09
 */
public class MyCallable implements Callable {
    int ticket = 0;

    @Override
    public Integer call() throws Exception {
        for (int i = 0; i < 10; i++) {
            if (i == 8) {
                ticket = i;
            }
        }
        return ticket;
    }
}
